package com.stoken.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.Index;




/**
 * 
 * @author lichao
 *
 */
@Entity
public class MemberBaseInfo implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY) 
	private long id;
	
	@Index(name = "index_base_username")
	@Column(length=16,unique=true,nullable=false)
	private String baseUsername;
	
	@Column(length=16,nullable=false)
	private String baseName;
	
	@Column(length=32,nullable=false)
	private String baseIdcard;
	
	@Column(length=16)
	private String basePhone;
	
	@Column(length=255)
	private String baseEmailMain;
	
	@Column(length=16)
	private String baseBankname;
	
	@Column(length=64)
	private String baseSubbranch;
	
	@Column(length=32)
	private String baseAccount;
	
	@Column(length=32)
	private String basePasswordFirst;
	
	@Column(length=32)
	private String basePasswordSeconde;
	
	@Column(length=32)
	private String basePasswordThird;
	
	@Temporal(TemporalType.TIMESTAMP)
	private Date baseFirstregisterTime;
	
	private String baseSpare;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getBaseUsername() {
		return baseUsername;
	}

	public void setBaseUsername(String baseUsername) {
		this.baseUsername = baseUsername;
	}

	public String getBaseName() {
		return baseName;
	}

	public void setBaseName(String baseName) {
		this.baseName = baseName;
	}

	public String getBaseIdcard() {
		return baseIdcard;
	}

	public void setBaseIdcard(String baseIdcard) {
		this.baseIdcard = baseIdcard;
	}

	public String getBasePhone() {
		return basePhone;
	}

	public void setBasePhone(String basePhone) {
		this.basePhone = basePhone;
	}

	public String getBaseEmailMain() {
		return baseEmailMain;
	}

	public void setBaseEmailMain(String baseEmailMain) {
		this.baseEmailMain = baseEmailMain;
	}

	public String getBaseBankname() {
		return baseBankname;
	}

	public void setBaseBankname(String baseBankname) {
		this.baseBankname = baseBankname;
	}

	public String getBaseSubbranch() {
		return baseSubbranch;
	}

	public void setBaseSubbranch(String baseSubbranch) {
		this.baseSubbranch = baseSubbranch;
	}

	public String getBaseAccount() {
		return baseAccount;
	}

	public void setBaseAccount(String baseAccount) {
		this.baseAccount = baseAccount;
	}

	public String getBasePasswordFirst() {
		return basePasswordFirst;
	}

	public void setBasePasswordFirst(String basePasswordFirst) {
		this.basePasswordFirst = basePasswordFirst;
	}

	public String getBasePasswordSeconde() {
		return basePasswordSeconde;
	}

	public void setBasePasswordSeconde(String basePasswordSeconde) {
		this.basePasswordSeconde = basePasswordSeconde;
	}

	public String getBasePasswordThird() {
		return basePasswordThird;
	}

	public void setBasePasswordThird(String basePasswordThird) {
		this.basePasswordThird = basePasswordThird;
	}

	public Date getBaseFirstregisterTime() {
		return baseFirstregisterTime;
	}

	public void setBaseFirstregisterTime(Date baseFirstregisterTime) {
		this.baseFirstregisterTime = baseFirstregisterTime;
	}

	public String getBaseSpare() {
		return baseSpare;
	}

	public void setBaseSpare(String baseSpare) {
		this.baseSpare = baseSpare;
	}
	
	
}
